import mockjs from 'mockjs';

export default {
  'GET /api/alarm/GetData': (req, res) => {
    res.send(
      mockjs.mock({
        code: 200,
        message: '请求成功',
        data: {
          total: 2,
          pageNum: 1,
          'list|50': [
            {
              'id|+1': 1,
              'deviceId|1': '202223251522252',
              deviceName: '@name',
              trueName: '@name',
              address: '@county(true)',
              latitude: '10.17 , 121',
              'level|1': ['一级', '二级', '三级', '四级'],
              'pushType|1': ['0', '1'],
              producedDate: '@date',
            },
          ],
        },
      }),
    );
    return;
  },
};
